package org.dtrd.modules.shop.entity.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.dtrd.modules.shop.entity.po.DtrdEntShcRdOrderRefund;
import java.util.Date;

/**
 * <p>
 * 商城订单退款表
 * </p>
 *
 * @author sun
 * @since 2022-07-25
 */
@Getter
@Setter
@ApiModel(value = "商城订单退款表详情")
public class OrderRefundDetail {

    private Integer dataId;

    @ApiModelProperty("退款患者id")
    private Integer refundPatientId;

    @ApiModelProperty("订单id")
    private String refundOrderId;

    @ApiModelProperty("订单名称")
    private String refundOrderName;

    @ApiModelProperty("订单状态")
    private Integer refundOrderStatus;

    @ApiModelProperty("订单状态")
    private String refundOrderStatusText;

    @ApiModelProperty("退款金额，单位分")
    private Integer refundPrice;

    @ApiModelProperty("退款原因")
    private String refundReason;

    @ApiModelProperty("退款审核时间")
    private Date refundApproveTime;

    @ApiModelProperty("退款审核结果：0-待审核，1-同意，2-拒绝")
    private Integer refundStatus;



    public OrderRefundDetail parseFromPo(DtrdEntShcRdOrderRefund po) {
        dataId = po.getDataId();
        refundPatientId = po.getRefundPatientId();
        refundOrderId = po.getRefundOrderId();
        refundOrderName = po.getRefundOrderName();
        refundOrderStatus = po.getRefundOrderStatus();
        refundPrice = po.getRefundPrice();
        refundReason = po.getRefundReason();
        refundApproveTime = po.getRefundApproveTime();
        refundStatus = po.getRefundStatus();
        return this;
    }
}
